<template>
  <div ref="box" style="width:600px;  height: 400px;" />
</template>

<script>
import * as Echarts from 'echarts'
import radarData from './radarData'
export default {
  mounted() {
    this.echarts = Echarts.init(this.$refs.box)
    this.echarts.setOption(radarData)
  },
  created() {
    this.init()
  },
  methods: {
    init() {
      setTimeout(() => {
        const value1 = [10, 1, 100, 5, 100, 0]
        const value2 = [50, 50, 50, 50, 50, 10]
        radarData.series[0].data[0].value = value1
        radarData.series[0].data[1].value = value2
        this.echarts.setOption(radarData)
      }, 1000)
    }
  }
}
</script>

<style>

</style>
